package com.nfit.shopmodel.entity.order;


import com.nfit.shopmodel.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Schema(description = "订单项实体类")
public class OrderItem extends BaseEntity {

   private static final long serialVersionUID = 1L;

   @Schema(description = "订单id")
   private Long orderId;

   @Schema(description = "商品id")
   private Long productId;

   @Schema(description = "用户id")
   private Long userId;

   @Schema(description = "商品sku编号")
   private Long skuId;

   @Schema(description = "商品sku名字")
   private String skuName;

   @Schema(description = "备注")
   private String buyerMessage;

   @Schema(description = "商品sku图片")
   private String thumbImg;

   @Schema(description = "商品sku价格")
   private BigDecimal skuPrice;

   @Schema(description = "邮费")
   private BigDecimal postFee;

   /** 商品总价 */
   private BigDecimal totalPrice;

   /** 应付金额 */
   private BigDecimal totalPayPrice;

   @Schema(description = "商品购买的数量")
   private Integer skuNum;

   @Schema(description = "支付方式 1微信 2支付宝")
   private Integer payChannel;

}